package com.ydlclass.enumeration;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 序列化类型枚举
 * @Author duWenJian
 * @Date 2024/2/22 21:20
 * @Version 1.0
 */
public enum SerializeTypeEnum {
    JDK((byte)1, "jdk")
    ,HESSIAN((byte)3, "hessian")
    ,JSON((byte)2, "json")
    ,PROTOSTUFF((byte)4, "PROTOSTUFF")
    ,FASTJSON((byte)5, "fastjson")
    ;
    private byte typeId;
    private String SerializeType;

    SerializeTypeEnum(byte typeId, String serializeType) {
        this.typeId = typeId;
        SerializeType = serializeType;
    }

    public byte getTypeId() {
        return typeId;
    }

    public void setTypeId(byte typeId) {
        this.typeId = typeId;
    }

    public String getSerializeType() {
        return SerializeType;
    }

    public void setSerializeType(String serializeType) {
        SerializeType = serializeType;
    }
}
